package pile.pay.service;

import com.alipay.api.AlipayApiException;
import pile.pay.config.alipayConfig.AlipayTradeEntity;
import pile.pay.entity.ResponseResult;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface IAliPayService {
    /**
     * 统一下单
     * @param
     * @return
     */
    ResponseResult transactions(AlipayTradeEntity alipayTradeEntity) throws AlipayApiException;

    /**
     * 支付宝支付回调
     * @param request
     * @param response
     * @return
     */
    String payNotify(HttpServletRequest request, HttpServletResponse response) throws AlipayApiException;


    /**
     * 支付宝申请退款
     * @return
     */
    ResponseResult refunds();
}
